<?php

if( ! defined('DOCROOT') )
{
    require_once '/var/www/advancelab/chilik2/unittest/bootstrap.php';
}

class RequestCookieTest extends UnitTestCase
{
    function testingRequestCookie()
    {
        $struct = new Entity\RequestCookie();
        
        $this->assertIdentical($struct,new Entity\RequestCookie);
        $this->assertTrue($struct instanceof Entity\RequestCookie);
        
        $struct->name = 'php';
        $this->assertEqual( 'php', $struct->name);
        $struct->value = 'ezc';
        $this->assertEqual( 'ezc', $struct->value);
        
        /* $this->dump($struct); */
    }
    
    public function testMockingMethod()
    {
        $state = array(
        'name' => 'php',
        'value' => 'ezc',
        );
        
        $struct = Entity\RequestCookie::__mock( $state );
        $this->assertEqual( 'php', $struct->name);
        $this->assertEqual( 'ezc', $struct->value);
    }
}

